package com.bang.study.prototype;

/**
 * @ClassName: ProtoTypeShape
 * @author: BANG
 * @Date: 2019/10/28 13:51
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
public class ProtoTypeShape {

    public static void main(String[] args) {
        PrototypeManager pm = new PrototypeManager();
        Shape obj1 = (Circle) pm.getShape("Circle");
        obj1.countArea();
        Shape obj2 = (Shape) pm.getShape("Square");
        obj2.countArea();
    }
}
